Optimal. Leaf size=360 \[ -\frac {8 b \left (a^2+4 b^2\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {\sec (c+d x)}}{5 a^4 d \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (3 a^4+8 a^2 b^2-16 b^4\right ) E\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {a+b \sec (c+d x)}}{5 a^4 \left (a^2-b^2\right ) d \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}}+\frac {2 b^2 \sin (c+d x)}{a \left (a^2-b^2\right ) d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (a^2-6 b^2\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{5 a^2 \left (a^2-b^2\right ) d \sec ^{\frac {3}{2}}(c+d x)}-\frac {2 b \left (3 a^2-8 b^2\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{5 a^3 \left (a^2-b^2\right ) d \sqrt {\sec (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.67, antiderivative size = 360, normalized size of antiderivative = 1.00, number of steps
used = 10, number of rules used = 9, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.360, Rules used = {3932, 4189,
4120, 3941, 2734, 2732, 3943, 2742, 2740} \begin {gather*} \frac {2 b^2 \sin (c+d x)}{a d \left (a^2-b^2\right ) \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (a^2-6 b^2\right ) \sin (c+d x) \sqrt {a+b \sec (c+d x)}}{5 a^2 d \left (a^2-b^2\right ) \sec ^{\frac {3}{2}}(c+d x)}-\frac {8 b \left (a^2+4 b^2\right ) \sqrt {\sec (c+d x)} \sqrt {\frac {a \cos (c+d x)+b}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{5 a^4 d \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (3 a^4+8 a^2 b^2-16 b^4\right ) \sqrt {a+b \sec (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{5 a^4 d \left (a^2-b^2\right ) \sqrt {\sec (c+d x)} \sqrt {\frac {a \cos (c+d x)+b}{a+b}}}-\frac {2 b \left (3 a^2-8 b^2\right ) \sin (c+d x) \sqrt {a+b \sec (c+d x)}}{5 a^3 d \left (a^2-b^2\right ) \sqrt {\sec (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2732
Rule 2734
Rule 2740
Rule 2742
Rule 3932
Rule 3941
Rule 3943
Rule 4120
Rule 4189
Rubi steps
\begin {align*} \int \frac {1}{\sec ^{\frac {5}{2}}(c+d x) (a+b \sec (c+d x))^{3/2}} \, dx &=\frac {2 b^2 \sin (c+d x)}{a \left (a^2-b^2\right ) d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sec (c+d x)}}-\frac {2 \int \frac {-\frac {a^2}{2}+3 b^2+\frac {1}{2} a b \sec (c+d x)-2 b^2 \sec ^2(c+d x)}{\sec ^{\frac {5}{2}}(c+d x) \sqrt {a+b \sec (c+d x)}} \, dx}{a \left (a^2-b^2\right )}\\ &=\frac {2 b^2 \sin (c+d x)}{a \left (a^2-b^2\right ) d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (a^2-6 b^2\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{5 a^2 \left (a^2-b^2\right ) d \sec ^{\frac {3}{2}}(c+d x)}+\frac {4 \int \frac {-\frac {3}{4} b \left (3 a^2-8 b^2\right )+\frac {1}{4} a \left (3 a^2+2 b^2\right ) \sec (c+d x)+\frac {1}{2} b \left (a^2-6 b^2\right ) \sec ^2(c+d x)}{\sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sec (c+d x)}} \, dx}{5 a^2 \left (a^2-b^2\right )}\\ &=\frac {2 b^2 \sin (c+d x)}{a \left (a^2-b^2\right ) d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (a^2-6 b^2\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{5 a^2 \left (a^2-b^2\right ) d \sec ^{\frac {3}{2}}(c+d x)}-\frac {2 b \left (3 a^2-8 b^2\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{5 a^3 \left (a^2-b^2\right ) d \sqrt {\sec (c+d x)}}-\frac {8 \int \frac {-\frac {3}{8} \left (3 a^4+8 a^2 b^2-16 b^4\right )+\frac {3}{8} a b \left (a^2+4 b^2\right ) \sec (c+d x)}{\sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)}} \, dx}{15 a^3 \left (a^2-b^2\right )}\\ &=\frac {2 b^2 \sin (c+d x)}{a \left (a^2-b^2\right ) d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (a^2-6 b^2\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{5 a^2 \left (a^2-b^2\right ) d \sec ^{\frac {3}{2}}(c+d x)}-\frac {2 b \left (3 a^2-8 b^2\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{5 a^3 \left (a^2-b^2\right ) d \sqrt {\sec (c+d x)}}-\frac {\left (4 b \left (a^2+4 b^2\right )\right ) \int \frac {\sqrt {\sec (c+d x)}}{\sqrt {a+b \sec (c+d x)}} \, dx}{5 a^4}+\frac {\left (3 a^4+8 a^2 b^2-16 b^4\right ) \int \frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {\sec (c+d x)}} \, dx}{5 a^4 \left (a^2-b^2\right )}\\ &=\frac {2 b^2 \sin (c+d x)}{a \left (a^2-b^2\right ) d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (a^2-6 b^2\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{5 a^2 \left (a^2-b^2\right ) d \sec ^{\frac {3}{2}}(c+d x)}-\frac {2 b \left (3 a^2-8 b^2\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{5 a^3 \left (a^2-b^2\right ) d \sqrt {\sec (c+d x)}}-\frac {\left (4 b \left (a^2+4 b^2\right ) \sqrt {b+a \cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {b+a \cos (c+d x)}} \, dx}{5 a^4 \sqrt {a+b \sec (c+d x)}}+\frac {\left (\left (3 a^4+8 a^2 b^2-16 b^4\right ) \sqrt {a+b \sec (c+d x)}\right ) \int \sqrt {b+a \cos (c+d x)} \, dx}{5 a^4 \left (a^2-b^2\right ) \sqrt {b+a \cos (c+d x)} \sqrt {\sec (c+d x)}}\\ &=\frac {2 b^2 \sin (c+d x)}{a \left (a^2-b^2\right ) d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (a^2-6 b^2\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{5 a^2 \left (a^2-b^2\right ) d \sec ^{\frac {3}{2}}(c+d x)}-\frac {2 b \left (3 a^2-8 b^2\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{5 a^3 \left (a^2-b^2\right ) d \sqrt {\sec (c+d x)}}-\frac {\left (4 b \left (a^2+4 b^2\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\frac {b}{a+b}+\frac {a \cos (c+d x)}{a+b}}} \, dx}{5 a^4 \sqrt {a+b \sec (c+d x)}}+\frac {\left (\left (3 a^4+8 a^2 b^2-16 b^4\right ) \sqrt {a+b \sec (c+d x)}\right ) \int \sqrt {\frac {b}{a+b}+\frac {a \cos (c+d x)}{a+b}} \, dx}{5 a^4 \left (a^2-b^2\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}}\\ &=-\frac {8 b \left (a^2+4 b^2\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {\sec (c+d x)}}{5 a^4 d \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (3 a^4+8 a^2 b^2-16 b^4\right ) E\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {a+b \sec (c+d x)}}{5 a^4 \left (a^2-b^2\right ) d \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}}+\frac {2 b^2 \sin (c+d x)}{a \left (a^2-b^2\right ) d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (a^2-6 b^2\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{5 a^2 \left (a^2-b^2\right ) d \sec ^{\frac {3}{2}}(c+d x)}-\frac {2 b \left (3 a^2-8 b^2\right ) \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{5 a^3 \left (a^2-b^2\right ) d \sqrt {\sec (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.91, size = 250, normalized size = 0.69 \begin {gather*} \frac {\sqrt {\sec (c+d x)} \left (4 \left (3 a^5+3 a^4 b+8 a^3 b^2+8 a^2 b^3-16 a b^4-16 b^5\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} E\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )-16 b \left (a^4+3 a^2 b^2-4 b^4\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )+2 a \left (a^4-7 a^2 b^2+16 b^4-4 a b \left (a^2-b^2\right ) \cos (c+d x)+\left (a^4-a^2 b^2\right ) \cos (2 (c+d x))\right ) \sin (c+d x)\right )}{10 a^4 (a-b) (a+b) d \sqrt {a+b \sec (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1860\) vs.
\(2(386)=772\).
time = 0.22, size = 1861, normalized size = 5.17
method | result | size |
default | \(\text {Expression too large to display}\) | \(1861\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 1.76, size = 692, normalized size = 1.92 \begin {gather*} -\frac {\sqrt {2} {\left (-9 i \, a^{4} b^{2} - 28 i \, a^{2} b^{4} + 32 i \, b^{6} + {\left (-9 i \, a^{5} b - 28 i \, a^{3} b^{3} + 32 i \, a b^{5}\right )} \cos \left (d x + c\right )\right )} \sqrt {a} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (3 \, a^{2} - 4 \, b^{2}\right )}}{3 \, a^{2}}, \frac {8 \, {\left (9 \, a^{2} b - 8 \, b^{3}\right )}}{27 \, a^{3}}, \frac {3 \, a \cos \left (d x + c\right ) + 3 i \, a \sin \left (d x + c\right ) + 2 \, b}{3 \, a}\right ) + \sqrt {2} {\left (9 i \, a^{4} b^{2} + 28 i \, a^{2} b^{4} - 32 i \, b^{6} + {\left (9 i \, a^{5} b + 28 i \, a^{3} b^{3} - 32 i \, a b^{5}\right )} \cos \left (d x + c\right )\right )} \sqrt {a} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (3 \, a^{2} - 4 \, b^{2}\right )}}{3 \, a^{2}}, \frac {8 \, {\left (9 \, a^{2} b - 8 \, b^{3}\right )}}{27 \, a^{3}}, \frac {3 \, a \cos \left (d x + c\right ) - 3 i \, a \sin \left (d x + c\right ) + 2 \, b}{3 \, a}\right ) - 3 \, \sqrt {2} {\left (3 i \, a^{5} b + 8 i \, a^{3} b^{3} - 16 i \, a b^{5} + {\left (3 i \, a^{6} + 8 i \, a^{4} b^{2} - 16 i \, a^{2} b^{4}\right )} \cos \left (d x + c\right )\right )} \sqrt {a} {\rm weierstrassZeta}\left (-\frac {4 \, {\left (3 \, a^{2} - 4 \, b^{2}\right )}}{3 \, a^{2}}, \frac {8 \, {\left (9 \, a^{2} b - 8 \, b^{3}\right )}}{27 \, a^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (3 \, a^{2} - 4 \, b^{2}\right )}}{3 \, a^{2}}, \frac {8 \, {\left (9 \, a^{2} b - 8 \, b^{3}\right )}}{27 \, a^{3}}, \frac {3 \, a \cos \left (d x + c\right ) + 3 i \, a \sin \left (d x + c\right ) + 2 \, b}{3 \, a}\right )\right ) - 3 \, \sqrt {2} {\left (-3 i \, a^{5} b - 8 i \, a^{3} b^{3} + 16 i \, a b^{5} + {\left (-3 i \, a^{6} - 8 i \, a^{4} b^{2} + 16 i \, a^{2} b^{4}\right )} \cos \left (d x + c\right )\right )} \sqrt {a} {\rm weierstrassZeta}\left (-\frac {4 \, {\left (3 \, a^{2} - 4 \, b^{2}\right )}}{3 \, a^{2}}, \frac {8 \, {\left (9 \, a^{2} b - 8 \, b^{3}\right )}}{27 \, a^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (3 \, a^{2} - 4 \, b^{2}\right )}}{3 \, a^{2}}, \frac {8 \, {\left (9 \, a^{2} b - 8 \, b^{3}\right )}}{27 \, a^{3}}, \frac {3 \, a \cos \left (d x + c\right ) - 3 i \, a \sin \left (d x + c\right ) + 2 \, b}{3 \, a}\right )\right ) - \frac {6 \, {\left ({\left (a^{6} - a^{4} b^{2}\right )} \cos \left (d x + c\right )^{3} - 2 \, {\left (a^{5} b - a^{3} b^{3}\right )} \cos \left (d x + c\right )^{2} - {\left (3 \, a^{4} b^{2} - 8 \, a^{2} b^{4}\right )} \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + b}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{15 \, {\left ({\left (a^{8} - a^{6} b^{2}\right )} d \cos \left (d x + c\right ) + {\left (a^{7} b - a^{5} b^{3}\right )} d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {1}{{\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^{3/2}\,{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{5/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________